﻿<%@ Page Language="C#" MasterPageFile="~/Admin/PH_Admin.master" AutoEventWireup="true" CodeFile="loaisanphamlist.aspx.cs" Inherits="Admin_loaisanphamlist" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <h2>
        Danh sách loại sản phẩm</h2>
    Tên loại sản phẩm:
    <asp:TextBox ID="txt_tenloai" runat="server"></asp:TextBox>
    <asp:Button ID="btn_Timkiem" runat="server" Text="Tìm kiếm" OnClick="btn_Timkiem_Click" />
    <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound"  >
        <HeaderTemplate>
            <table cellspacing="1" cellpadding="3" width="100%" border="1">
                <tr class="listtableheader">
                    <th>
                        Mã loại sản phẩm</th>
                    <th>
                        Tên loại sản phẩm</th>
                    <th>
                        Sửa</th>
                    <th>
                        <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                        <a href="javascript:CheckAll(2)">Chọn hết</a>
                    </th>
                </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:Literal ID="lit_Ma" runat="server" />
                </td>
                <td>
                    <asp:HyperLink ID="hyp_ten" runat="server"></asp:HyperLink></td>
                <td>
                    <asp:HyperLink ID="hpl_Edit" runat="server">Edit</asp:HyperLink></td>
                <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                    <asp:HiddenField ID="hf_id" runat="server" />
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <asp:Button ID="btn_xoa" runat="server" Text="Xóa" OnClick="btn_xoa_Click"  />
</asp:Content>

